import request from '@/utils/request'


export function malfunctionList(data) { //故障管理-列表
    return request({
        url: '/project-quality/api/faultInfo/page',
        method: 'post',
        data
    })
}
export function malfunctionIsBankList(data) { //故障管理-无权限列表
    return request({
        url: '/project-quality/api/faultInfo/library/page',
        method: 'post',
        data
    })
}
export function malfunctionAdd(data) { //故障管理-添加
    return request({
        url: '/project-quality/api/faultInfo/add',
        method: 'POST',
        data
    })
}
export function malfunctionEdit(data) { //故障管理-修改
    return request({
        url: '/project-quality/api/faultInfo/edit',
        method: 'post',
        data
    })
}
export function malfunctionDetail(id) { //故障管理-单条查询
    return request({
        url: '/project-quality/api/faultInfo/'+id,
        method: 'get',
    })
}
export function malfunctionDelete(id) { //故障管理-单条查询删除
    return request({
        url: '/project-quality/api/faultInfo/del/'+id,
        method: 'get',
    })
}
export function malfunctionExportAll(data) { //故障管理-导出
    return request({
        url: '/project-quality/api/faultInfo/export',
        responseType: 'arraybuffer',
        method: 'post',
        data,
    })
}

export function malfunctionDetailsByEdis(params) { //故障管理-通过edis编码获取详细信息
    return request({
      url: '/project-quality/api/faultInfo/edis',
      method: 'GET',
      params
    })
  }



